package com.amumu.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Example;
import org.springframework.stereotype.Service;

import com.amumu.po.ContentInfo;
import com.amumu.repository.ContentInfoRepository;
import com.amumu.service.ContentInfoDataService;

@Service
public class ContentInfoDataServiceImpl implements ContentInfoDataService {

	@Autowired
    private ContentInfoRepository contentInfoRepository;
	   
	@Override
	public List<ContentInfo> findAll(Integer type) {
		ContentInfo contentInfo = new ContentInfo();
		contentInfo.setType(1);
        Example<ContentInfo> example = Example.of(contentInfo);
		return contentInfoRepository.findAll(example);
	}

}
